package com.songmy.spider.run.vo;

public enum JSMethod {
	POST("POST"),GET("GET"),HEAD("HEAD");
	
	private String name = null ; 
	private JSMethod(String name) {
		this.name = name ;
	}
	
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	public static JSMethod getMethod (String name){
		for (JSMethod method : JSMethod.values()) {
			if(method.getName().equalsIgnoreCase(name)){
				return method ; 
			}
		}
		return null ; 
	}
}
